//
//  RightSideCell.m
//  YouthOlympic2014
//
//  Created by xiangpaopao on 14-6-30.
//  Copyright (c) 2014年 mitian. All rights reserved.
//

#import "RightSideCell.h"

@implementation RightSideCell

- (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        // Initialization code
    }
    return self;
}

- (void)awakeFromNib
{
    // Initialization code
}

-(void)configureWithTitle:(NSString*)title
                   subTitle:(NSString*)subTitle
{
    [self.contentView setBackgroundColor:[UIColor clearColor]];
    
    self.selectedBackgroundView = [[UIView alloc] initWithFrame:self.frame];
    self.selectedBackgroundView.backgroundColor = Rgb2UIColor(16, 49, 42);

    [self.titleLabel setText:title];
    [self.subTitleLabel setText:subTitle];
}

-(void)setRead:(NSNumber*)read
{
    if (1==[read intValue]) {
        [self.titleLabel setTextColor:HEX2UIColor(0x717b79)];
        [self.subTitleLabel setTextColor:HEX2UIColor(0x717b79)];
    }else{
        [self.titleLabel setTextColor:Rgb2UIColor(171,205,3)];
        [self.subTitleLabel setTextColor:[UIColor whiteColor]];
    }
}


@end
